//
// Created by bjliuyong on 2021/7/4.
//

#include "debug.h"
#include "../../../../include/common.h"

// error reporting helper functions
void report_vm_error(const char* file, int line, const char* error_msg,
                     const char* detail_msg){
    ERROR_PRINT("msg:%s",error_msg);
    exit(-1);
}

void report_should_not_call(const char* file, int line) {
    report_vm_error(file, line, "ShouldNotCall()");
}